; If you meet compile error, try 'sudo apt install gcc-multilib g++-multilib' first

%include "head.include"
; you code here

your_if:
; put your implementation here

move eax,[a1]
cmp eax, 12
jge next_judge

shr eax,1 ;a1/2
inc eax  ;a1+1
jmp end

next_judge:
	cmp eax,24
	jge else
	
	mov ebx,eax
	sub ebx,24 ;24-a1
	neg ebx  ;a1-24
	imul ebx,eax
	mov eax,ebx
	jmp end
	
else:
	shl eax,4 ;a<<4
	
end:
	mov [if_flag],eax
	ret
	
your_while:
; put your implementation here

mov ebx, [a2]

loop:
	cmp ebx,12
	jl end
	call my_random
	lea edx, [ebx-12]
	shl edx, 2	
	mov [while_flag + edx], eax
	dec ebx ; --a2
	jmp loop
	
end:
	ret








%include "end.include"

your_function:

mov esi, string
loop:
	mov al,[esi]
	test al,al
	jz end
	pushad
	push eax
	call print_a_char
	add esp,4
	popad
	inc esi
	jmp loop
	
end:
	ret



; put your implementation here
